package com.baichang.taoshunda.service;

import java.util.List;
import java.util.Map;

/**
 * Created by ${wushenglu} on 2018/3/12.
 */
public interface FootmarkService {
    /**
     * 查询我的足迹
     *
     * @param userId   用户编号
     * @param nowPage  当前页
     * @param pageSize 当前条数
     * @param key
     * @return
     */
    List<Map<String, Object>> findFootMark(Integer userId, Integer nowPage, Integer pageSize, String key);

    /**
     * 添加足迹
     *
     * @param userId
     * @param goodsId
     * @param id
     * @return
     */
    boolean addFootMark(int userId, Integer goodsId, Integer id);

    /**
     * 查看是否添加足迹
     *
     * @param userId
     * @param goodsId
     * @return
     */
    int getCountByUser(int userId, Integer goodsId);

    /**
     * 删除足迹
     * @param footMarkId
     * @return
     */
    boolean deleteFootMark(Integer footMarkId);

    /**
     *
     * @param userId
     * @param goodsId
     */
    void updateTime(int userId, Integer goodsId);

    /**
     *
     * @param userId
     * @return
     */
    boolean deleteAllFootMark(Integer userId);

    /**
     *
     * @param footMarkId
     * @return
     */
    boolean deleteSelectedFootMark(String footMarkId);
}
